import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import {indexForItem} from "ionic-angular/umd/components/item/item-reorder-util";
import {Http} from "@angular/http";

@Component({
  selector: 'page-item',
  templateUrl: 'item.html'
})
export class ItemPage {
  data: any
  constructor(public navCtrl: NavController,  http: Http) {
    http.get('http://192.168.2.74:8080/cloudmonitor-webapp/CM-Mobile/StoreList?code=C1508757107382').subscribe(res=> {
      var data1 = res.json();
      this.data = data1[0];
      this.data = this.data.customerName;
    });
  }

}
